/*
 * @Author: xiehangyun 
 * @Date: 2025-05-16 10:33:31 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-06-05 18:10:45
 */

.myPromotion {
    background-color: #F2F2F2;
    position: relative;
    font-size: 24rpx;
    box-sizing: border-box;
    min-height: 100vh;
    padding-top: 188rpx;
    padding-left: 20rpx;
    padding-right: 20rpx;
    padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
    overflow-x: hidden;

    /* 内容区域 */
    .content {
        margin: 20rpx 0;
        display: flex;
        flex-direction: column;
        gap: 20rpx;
    }

    /* 头像相关样式 */
    .avatarContainer {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .avatarBtn {
        border: none;
        text-align: center;
        background-color: none;
        width: 140rpx;
        height: 140rpx;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: block;
        margin: 40rpx auto;
    }

    .avatarSmall {
        width: 140rpx;
        height: 140rpx;
        display: block;
        border-radius: 50%;
    }

    /* 统计卡片 */
    .statsCard {
        background: #FFFFFF;
        border-radius: 16rpx;
        padding: 30rpx;
        display: flex;
        justify-content: space-between;
        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);

        .statItem {
            text-align: center;
            flex: 1;

            .statValue {
                font-size: 36rpx;
                font-weight: bold;
                color: #fd7901;
                margin-bottom: 10rpx;
            }

            .statLabel {
                font-size: 24rpx;
                color: #999999;
            }
        }
    }

    /* 二维码区域 */
    .qrCodeSection {
        background: #FFFFFF;
        border-radius: 16rpx;
        padding: 30rpx;
        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);

        .sectionTitle {
            font-size: 34rpx;
            font-weight: bold;
            color: #333333;
            margin-bottom: 20rpx;
            text-align: center;
        }

        .qrCodeContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 20rpx 0;
            width: 100%;
        }

        .qrCodePlaceholder {
            width: 300rpx;
            height: 300rpx;
            // background-color: #F0F0F0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999999;
        }

        .shareHint {
            text-align: center;
            font-size: 30rpx;
            color: #999999;
        }

        .shareBtn {
            margin: 20rpx 0;
            height: 70rpx;
        }

    }

    /* 推广链接 */
    .linkSection {
        background: #FFFFFF;
        border-radius: 16rpx;
        padding: 30rpx;
        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);

        .sectionTitle {
            font-size: 28rpx;
            font-weight: bold;
            color: #333333;
            margin-bottom: 20rpx;
        }

        .linkBox {
            background: #F7F7F7;
            padding: 20rpx;
            border-radius: 8rpx;
            font-size: 24rpx;
            color: #666666;
            word-break: break-all;
            margin-bottom: 20rpx;
        }

        .copyBtn {
            background: #fd7901;
            color: white;
            text-align: center;
            padding: 20rpx;
            border-radius: 8rpx;
            font-size: 28rpx;
        }
    }

    .promotionImage {
        width: 100%;
        margin: 0 auto;
    }

    /* 申请进度卡片 */
    .progressCard {
        background: #FFFFFF;
        border-radius: 16rpx;
        padding: 30rpx;
        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
        border: 1px solid #FFE1C6;
        margin-bottom: 20rpx;
    }

    .progressHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20rpx;
    }

    .progressTitle {
        font-size: 28rpx;
        font-weight: bold;
        color: #fd7901;
    }

    .progressPercentage {
        font-size: 28rpx;
        color: #fd7901;
    }

    .progressBarContainer {
        display: flex;
        align-items: center;
        gap: 15rpx;
        margin-bottom: 15rpx;
    }

    .progressLabel {
        font-size: 22rpx;
        color: #666666;
        min-width: 50rpx;
    }

    .progressBar {
        flex: 1;
        height: 20rpx;
        background-color: #F5F5F5;
        border-radius: 10rpx;
        overflow: hidden;
        position: relative;
    }

    .progressFill {
        height: 100%;
        background-color: #fd7901;
        border-radius: 10rpx;
        position: relative;
    }

    .progressFill::after {
        content: '';
        position: absolute;
        top: 0;
        right: -8rpx;
        width: 36rpx;
        height: 36rpx;
        background-color: #fd7901;
        border-radius: 50%;
        transform: translateY(-25%);
        box-shadow: 0 0 10rpx rgba(253, 121, 1, 0.3);
    }

    .progressDescription {
        font-size: 22rpx;
        color: #999999;
        margin-bottom: 15rpx;
    }

    .progressAmount {
        font-size: 24rpx;
        font-weight: bold;
        color: #333333;
        margin-bottom: 15rpx;
        text-align: center;
    }

    .progressHint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10rpx;
        font-size: 22rpx;
        color: #fd7901;
    }

    .hintIcon {
        width: 24rpx;
        height: 24rpx;
    }

    /* 头像相关样式调整 */
    .avatarRow {
        display: flex;
        align-items: center;
        gap: 30rpx;
        width: 100%;
        padding: 20rpx 0;
    }

    .avatarContainer {
        flex-shrink: 0;
    }

    .avatarSmall {
        width: 120rpx;
        height: 120rpx;
        border-radius: 50%;
        background-color: #F5F5F5;
    }

    .avatarButtons {
        display: flex;
        flex-direction: column;
        gap: 15rpx;
        flex: 1;
    }

    .avatarButton {
        position: relative;
        width: 300rpx;
    }

    /* 个人信息表单 */
    .formCard {
        background: #FFFFFF;
        border-radius: 16rpx;
        padding: 30rpx;
        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
        margin-bottom: 20rpx;
    }

    .formLabel {
        font-size: 28rpx;
        color: #333333;
        font-weight: 500;
        align-self: flex-start;
    }

    .avatarUploader {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20rpx 0;
    }

    .avatar {
        width: 160rpx;
        height: 160rpx;
        border-radius: 50%;
        background-color: #F5F5F5;
    }

    .uploadHint {
        font-size: 24rpx;
        color: #999999;
        margin-top: 15rpx;
    }

    .inputContainer {
        width: 100%;
        padding: 0 20rpx;
        box-sizing: border-box;
    }

    /* 表单输入框样式 - 与IssueCoupon页面保持一致 */
    .formInput {
        background-color: #FFFFFF;
        border: 1px solid #E8E8E8;
        border-radius: 6px;
        height: 70rpx;
        /* 减小高度，与IssueCoupon页面保持一致 */
        padding: 0 30rpx;
        font-size: 28rpx;
        color: #333333;
        box-sizing: border-box;
    }

    .formInput::placeholder {
        color: #CCCCCC;
    }

    /* 适配NutUI Form组件的样式 */
    .formItem {
        margin-bottom: 0;
        padding-left: 30rpx;
        padding-right: 30rpx;
    }

    /* 提交按钮样式 - 与IssueCoupon页面保持一致 */
    .submitBtn {
        margin: 20rpx 0;
        height: 60rpx;
        line-height: 60rpx;
        font-size: 28rpx;
        background-color: #fd7901;
        border-radius: 8rpx;
    }

    .downloadBtn {
        margin: 20rpx 0;
        height: 70rpx;
    }

    /* 规则区域 */
    .rulesSection {
        background: #FFFFFF;
        border-radius: 16rpx;
        padding: 30rpx;
        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);

        .sectionTitle {
            font-size: 28rpx;
            font-weight: bold;
            color: #333333;
            margin-bottom: 20rpx;
        }

        .ruleItem {
            font-size: 24rpx;
            color: #666666;
            margin-bottom: 15rpx;
            line-height: 1.6;
        }
    }
}

.qrCodeText {
    position: relative;
    font-size: 20px;
    text-align: center;
    color: #FF7C5E;
    padding: 10px 0;
    margin: 20rpx 0rpx;
    width: 100%;
    word-break: break-all;
    height: 70rpx;
    box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.2);
    border-radius: 20rpx;
    font-weight: bold;
    line-height: 70rpx;

    .copy {
        position: absolute;
        right: 28rpx;
        top: 28rpx;
    }
}

.warningText {
    font-size: 20px;
    text-align: center;
    color: #ff4d4f;
    padding: 15px;
    margin-top: 10px;
    width: 100%;
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    word-break: break-all;
    box-sizing: border-box;
}

.copyIcon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    cursor: pointer;
}

.copyText {
    font-size: 24rpx;
    color: #999999;
}